import { Method } from '../method'
import service from '../service'

export default {
  queryProjectManageSealAuthorizeList(data: any) {
    // 授权应用列表查询应用列表
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryProjectManageSealAuthorizeList`,
      method: Method.POST,
      body: data,
    })
  },
  queryManageSealProjectAuthorizeSeal(data: any) {
    // 查询所管理的应用授权的印章
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryManageSealProjectAuthorizeSeal`,
      method: Method.POST,
      body: data,
    })
  },
  cancelAuthorizeManageSeal(data: any) {
    // 取消授权印章
    return service({
      url: `/seal/rest/projectManageSealAuthorize/cancelAuthorizeManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  queryManageSeal(data: any) {
    // 获取所有管理的印章列表（返回projectId是否进行授权过的印章）
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  queryManageSealProjectAuthorizeSealsCount(data: any) {
    // 查询所管理的印章的授权印章数量
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryManageSealProjectAuthorizeSealsCount`,
      method: Method.POST,
      body: data,
    })
  },
  queryManageSealAuthorizeCountBySeal(data: any) {
    // 查询所管理的印章的授权应用数量
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryManageSealAuthorizeCountBySeal`,
      method: Method.POST,
      body: data,
    })
  },
  cancelAuthorizeAllManageSeal(data: any) {
    // 取消所有印章授权
    return service({
      url: `/seal/rest/projectManageSealAuthorize/cancelAuthorizeAllManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  authorizeManageSeal(data: any) {
    // 授权印章
    return service({
      url: `/seal/rest/projectManageSealAuthorize/authorizeManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  authorizeAllManageSeal(data: any) {
    // 授权全部印章
    return service({
      url: `/seal/rest/projectManageSealAuthorize/authorizeAllManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  queryProjectSimplesBySealUseType(data: any) {
    // 查询应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryProjectSimplesBySealUseType`,
      method: Method.POST,
      body: data,
    })
  },
  copyAuthorizeManageSeal(data: any) {
    // 同步应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/copyAuthorizeManageSeal`,
      method: Method.POST,
      body: data,
    })
  },
  queryProjectDeail(data: any) {
    // 应用详情
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryProjectDetail`,
      method: Method.POST,
      body: data,
    })
  },
  queryProjectManageSealAuthorizeListBySeal(data: any) {
    // 印章查询已授权应用列表
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryProjectManageSealAuthorizeListBySeal`,
      method: Method.POST,
      body: data,
    })
  },
  queryProjectSimplesBySealUseTypeBySeal(data: any) {
    // 印章查询可授权应用列表
    return service({
      url: `/seal/rest/projectManageSealAuthorize/queryProjectSimplesBySealUseTypeBySeal`,
      method: Method.POST,
      body: data,
    })
  },
  cancelAuthorizeManageSealToAllProject(data: any) {
    // 印章全部取消授权应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/cancelAuthorizeManageSealToAllProject`,
      method: Method.POST,
      body: data,
    })
  },
  cancelAuthorizeManageSealToProject(data: any) {
    // 印章批量取消授权应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/cancelAuthorizeManageSealToProject`,
      method: Method.POST,
      body: data,
    })
  },

  authorizeManageSealToAllProject(data: any) {
    // 印章全部授权应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/authorizeManageSealToAllProject`,
      method: Method.POST,
      body: data,
    })
  },
  authorizeManageSealToProject(data: any) {
    // 印章批量授权应用
    return service({
      url: `/seal/rest/projectManageSealAuthorize/authorizeManageSealToProject`,
      method: Method.POST,
      body: data,
    })
  },
}
